import axios from 'axios';

export const getDictionaryDataByType = async (type) => {
  try {
    const response = await axios.get(`/api/dictionary/data/${type}`);
    return response.data;
  } catch (error) {
    console.error("Error fetching dictionary data by type:", error);
    throw error;
  }
};

// 其他 API 函数...
